package com.ruoyi.personnel.management.staff.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * staff_transfer_record
 * 员工调动记录
 * @author Drj 2021/6/28
 */
public class StaffTransferRecord extends BaseEntity {

    /**
     * 自增编号
     */
    private Integer transferNum;
    /**
     * 员工编号
     */
    @NotNull(message = "员工编号不能为空")
    @ApiModelProperty(value = "员工编号", required = true)
    private String staffId;
    /**
     * 员工名称
     */
    private String staffName;
    /**
     * 前部门
     */
    @NotNull(message = "员工编号不能为空")
    @ApiModelProperty(value = "员工编号", required = true)
    private Long departmentIdFormer;
    /**
     * 前部门名称
     */
    private String departmentNameFormer;
    /**
     * 现部门
     */
    @NotNull(message = "员工编号不能为空")
    @ApiModelProperty(value = "员工编号", required = true)
    private Long departmentIdCurrent;
    /**
     * 现部门名称
     */
    private String departmentNameCurrent;
    /**
     * 前职位
     */
    @NotNull(message = "员工编号不能为空")
    @ApiModelProperty(value = "员工编号", required = true)
    private Long positionIdFormer;
    /**
     * 前员工职位名称
     */
    private String positionInfoNameFormer;
    /**
     * 现职位
     */
    @NotNull(message = "员工编号不能为空")
    @ApiModelProperty(value = "员工编号", required = true)
    private Long positionIdCurrent;
    /**
     * 现员工职位名称
     */
    private String positionInfoNameCurrent;
    /**
     * 调动时间
     */
    private java.sql.Timestamp transferTime;
    /**
     * 创建时间
     */
    private java.sql.Timestamp createTime;
    /**
     * 备注
     */
    private String remark;

    public StaffTransferRecord() {
    }

    public StaffTransferRecord(Staff staffFormer,Staff staffCurrent) {
        this.staffId = staffCurrent.getStaffId();
        this.departmentIdFormer = staffFormer.getDepartmentId();
        this.positionIdFormer = staffFormer.getPositionInfoId();
        this.departmentIdCurrent = staffCurrent.getDepartmentId();
        this.positionIdCurrent = staffCurrent.getPositionInfoId();
    }

    public Integer getTransferNum() {
        return transferNum;
    }

    public void setTransferNum(Integer transferNum) {
        this.transferNum = transferNum;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public Long getDepartmentIdFormer() {
        return departmentIdFormer;
    }

    public void setDepartmentIdFormer(Long departmentIdFormer) {
        this.departmentIdFormer = departmentIdFormer;
    }

    public String getDepartmentNameFormer() {
        return departmentNameFormer;
    }

    public void setDepartmentNameFormer(String departmentNameFormer) {
        this.departmentNameFormer = departmentNameFormer;
    }

    public Long getDepartmentIdCurrent() {
        return departmentIdCurrent;
    }

    public void setDepartmentIdCurrent(Long departmentIdCurrent) {
        this.departmentIdCurrent = departmentIdCurrent;
    }

    public String getDepartmentNameCurrent() {
        return departmentNameCurrent;
    }

    public void setDepartmentNameCurrent(String departmentNameCurrent) {
        this.departmentNameCurrent = departmentNameCurrent;
    }

    public Long getPositionIdFormer() {
        return positionIdFormer;
    }

    public void setPositionIdFormer(Long positionIdFormer) {
        this.positionIdFormer = positionIdFormer;
    }

    public String getPositionInfoNameFormer() {
        return positionInfoNameFormer;
    }

    public void setPositionInfoNameFormer(String positionInfoNameFormer) {
        this.positionInfoNameFormer = positionInfoNameFormer;
    }

    public Long getPositionIdCurrent() {
        return positionIdCurrent;
    }

    public void setPositionIdCurrent(Long positionIdCurrent) {
        this.positionIdCurrent = positionIdCurrent;
    }

    public String getPositionInfoNameCurrent() {
        return positionInfoNameCurrent;
    }

    public void setPositionInfoNameCurrent(String positionInfoNameCurrent) {
        this.positionInfoNameCurrent = positionInfoNameCurrent;
    }

    public Timestamp getTransferTime() {
        return transferTime;
    }

    public void setTransferTime(Timestamp transferTime) {
        this.transferTime = transferTime;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
